<template>
<input
  class="va-df-input-control"
  type="password"
  :placeholder="field.placeholder"
  :maxlength="field.max"
  :value="value"
  :disabled="disabled"
  @input="onChange">
</template>

<script>
  /*
  * field配置
  *   placeholder: string
  *   max: int
  *   disabled
  * */
  export default {
    props: {
      value: {},
      field: Object,
      disabled: Boolean
    },
    methods: {
      onChange (e) {
        this.$emit('input', e.target.value)
      }
    }
  }
</script>
